import styles from './index.module.less'
import React from 'react'
import classNames from 'classnames'

interface Props {
    className?: string
    style?: React.CSSProperties
    title: string
    children: React.ReactNode
}

const Plate: React.FC<Props> = props => {
    return (
        <div className={classNames(styles.plate, props.className)}>
            <div className={styles.plate_header}>{props.title}</div>

            {props.children}
        </div>
    )
}

export default Plate
